package com.sinaapp.gavinzhang.GSpider.examples;

import com.sinaapp.gavinzhang.GSpider.core.AbstractPageProcessor;
import com.sinaapp.gavinzhang.GSpider.webaddress.WebAddress;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

/**
 * @author gavin
 * @version 1.0
 * @date 2015/9/20
 * @description TODO
 */
public class ZhilianzhaopinPageProcessor extends AbstractPageProcessor {
    private static int i = 0;

    @Override
    public Elements preDispose(Document html) {
        return html.select("a");
    }

    @Override
    public void dispose(Document html, WebAddress webUrl) {
        System.out.println(i++ +"  "+webUrl);
    }
}
